
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>

<link rel="stylesheet" type="text/css" href="theme/layui/css/layui.css">
<link rel="stylesheet" type="text/css" href="theme/default/css/common.css">
<script src="theme/default/Js/Common.js"></script>
<script src="theme/default/Js/jquery-3.0.0.min.js"></script>
<script src="theme/default/js/artDialog.js?skin=blue"></script>
<link rel="stylesheet" type="text/css" href="include/webupload/webuploader.css">
<script src="include/webupload/webuploader.min.js"></script> 
<script src="include/webupload/uploads.js"></script>
<link rel='stylesheet' type="text/css" href='theme/desktop/css/font-awesome.min.css'>

</head>
<body>

<script>
		<!-- 必填项提示
		function CheckInput()
		{
			if(document.getElementById('oReport').value == ""){art.dialog({title: 'Error',time: 1,icon: 'warning',content: '工作总结不能为空!'});document.getElementById('oReport').focus();return false;}
			if(document.getElementById('oFujian').value == ""){art.dialog({title: 'Error',time: 1,icon: 'warning',content: '附件不能为空!'});document.getElementById('oFujian').focus();return false;}
		}
		-->
		</script>
<div class="cssout">
<!----------------------------------------提交工作报告开始----------------------------------------> 
<!----------------------------------------提交工作报告开始---------------------------------------->
<div class="cssout">
  <form class="layui-form" name="save" action="?action=Report&stype=saveadd&LaiLu=" method="post">
    <div class="cssin">
      <ul>
        <li class="w100 bg"><dd class="isin"><B>提交工作报告</B></dd></li>
        <li class="w25 bg cl tr"><dd class="isin">选择对象</dd></li>
        <li class="w75" style="height:auto;"><dd class="isin">
  
          <input type="checkbox" class="btns lay-checkbox" name="oSendto" value="超级管理员"  title="超级管理员">
        
          <input type="checkbox" class="btns lay-checkbox" name="oSendto" value="测试"  title="测试">
        </dd></li>
        <li class="w25 bg cl tr"><dd class="isin">
          分类</dd></li>
        <li class="w75"><dd class="isin">
        
          <input name="oclass" type="radio" class="btns" value="日报" title="日报" checked>
          <input name="oclass" type="radio" class="btns" value="周报" title="周报">
          <input name="oclass" type="radio" class="btns" value="月报" title="月报">
          <input name="oclass" type="radio" class="btns" value="季报" title="季报">
          <input name="oclass" type="radio" class="btns" value="年报" title="年报">
          
          <input name="oclass" type="radio" value="工作心得" title="工作心得">
          
          
          </dd></li>
        <li class="w25 duohang bg cl tr" style="height:335px;"><dd class="isin">工作总结</dd></li>
        
        <li class="w75 duohang" style="height:335px; overflow-y:auto;"><dd class="isin" style="padding:5px;">
        
<textarea class="layui-textarea layui-hide" name="oReport" id="oReport"></textarea>
</dd>
          
          
        </li>
        <li class="w25 bg cl tr"><dd class="isin">
          附件</dd></li>
        <li class="w75"><dd class="isin">
        
<input name="oTitle" type="hidden" id="oTitle" value="">
<input name="oFujian" type="hidden" id="oFujian" value="">
<span id="name1"> </span>
<script>
//定义一个上传
var upName1 = $("#name1").powerWebUpload(
{ 
	auto: true,//上传后是否自动上传
	fileNumLimit:1,//允许上传个数
	accept: {
	   title: '上传文件',
	   extensions: 'gif,jpg,png,bmp,doc,docx,xls,xlsx,ppt,pdf,rar,zip,txt',//允许类型 原始：'gif,jpg,jpeg,bmp,png'
	   mimeTypes: '*'//类型 原始：'image/*'
	}//限制的配置信息
});
upName1.on( 'error', function( file ) {
 //console.log(file);
});
upName1.on( 'fileQueued', function( file ) {
 //console.log(file);
});
 upName1.on('uploadError', function (file) {
 //console.log(file);
 });
//绑定上传完成事件 file 参数中有 原始名称 大小 后缀 类型等等参数；percentage是服务返回的参数 有信息 和图片地址
    upName1.on('uploadSuccess', function (file, percentage) {
	$("#oTitle").val(file.name);
	$("#oFujian").val(percentage.data.src);
	
});
</script>
          
          </dd></li>
<div class="clear"></div>
      </ul>
    </div>
    <div class="h50b"></div>
    <div class="fixed_bg_B">
      <input name="oUser" type="hidden" value="超级管理员">
      <input type="submit" name="Submit" class="btn2 btnbaoc" value="保存">
      <input name="Back" type="button" id="Back" class="btn2 btnguanb" value="关闭" onClick="art.dialog.close();guanbi();">
    </div>
  </form>
</div>

<script src="theme/default/WdatePicker.js"></script> 
<script src="theme/layui/layui.js"></script> 
<script src="theme/desktop/js/common.js"></script> 
<script>
layui.use(['form', 'layedit', 'laydate'], function(){
  var form = layui.form()
  ,layer = layui.layer
  ,layedit = layui.layedit
  ,laydate = layui.laydate;
  
  //创建一个编辑器
  var editindex = layedit.build('oReport', {
	uploadImage: {
	  url: '/include/inc/upload.asp?dopost=image' //接口url
	  ,type: '' //默认post
	}
  }); 
  //创建一个编辑器
  var editIndex2 = layedit.build('oReply', {
	height: 170 , //设置编辑器高度
	uploadImage: {
	  url: '/include/inc/upload.asp?dopost=image' //接口url
	  ,type: '' //默认post
	}
  }); 
  //var editIndex2 = layedit.build('oReply');
});
</script>

<script>
/*弹出窗口封装代码*/
$(".open-app").on("click",function(){
	var width = $(this).data("width")?$(this).data("width"):900,//获得宽度
	height = $(this).data("height")?$(this).data("height"):400//获得高度
	url = $(this).attr("href")//获得打开URL
	title = $(this).attr("title");//获得标题	
	$.dialog.open(url, {title: title, width:width,height:height, fixed: true});
	return false;	
})
</script>

</body>
</html>
